package com.neu.his.entity;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import javax.jws.soap.SOAPBinding;
import java.util.List;

@Data
public class Department extends Base {
    private String deptCode;
    private String deptName;
    private Long deptCategory;

    //科室类型
    @TableField(exist = false)
    private DepartmentType departmentType;

    //所属用户
    @TableField(exist = false)
    private List<User> userList;

    @TableField(exist = false)
    private List<Regist> registList;

    @Override
    public String toString(){
        return JSON.toJSONString(this);
    }
    public Department(){}
    public Department(String deptCode,String deptName,Long deptCategory){
        this.deptCategory=deptCategory;
        this.deptName=deptName;
        this.deptCode=deptCode;
    }

}
